package order

type tOrderHeaderEntity struct {
	OrderID    int64
	ConsumerID int64
	CreateTime int64
	Status     int
	Timestamp  int64
}

func (me *tOrderHeaderEntity) Clone() *tOrderHeaderEntity {
	return &tOrderHeaderEntity{
		me.OrderID, me.ConsumerID, me.CreateTime, me.Status, me.Timestamp,
	}
}

func (me *tOrderHeaderEntity) ToOrderHeader() *OrderHeaderDTO {
	return &OrderHeaderDTO{
		me.OrderID, me.ConsumerID, me.CreateTime, me.Status, me.Timestamp,
	}
}

func (me *tOrderHeaderEntity) Read(it *OrderHeaderDTO) {
	me.OrderID = it.OrderID
	me.ConsumerID = it.ConsumerID
	me.CreateTime = it.CreateTime
	me.Status = it.Status
	me.Timestamp = it.Timestamp
}
